package com.bsoft.exchange.webservice;


import java.util.List;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;

import com.bsoft.exchange.response.ResponseEntity;
import com.bsoft.exchange.vo.PatientCardVo;
import com.bsoft.exchange.vo.PatientVo;
import com.bsoft.exchange.vo.RegisterVo;

@WebService(targetNamespace="http://webservice.exchange.bsoft.com")
public interface  RegisterWebService {
    @WebMethod//标注该方法为webservice暴露的方法,用于向外公布，它修饰的方法是webservice方法，去掉也没影响的，类似一个注释信息。
    @WebResult(name="String",targetNamespace="")
     public ResponseEntity<RegisterVo> getRegistrationForm(@WebParam(name = "hospitalCode")  String hospitalCode,
    		 @WebParam(name = "hisOrderNumber")  String hisOrderNumber);
    
    @WebMethod
    @WebResult(name="String",targetNamespace="")
     public ResponseEntity<List<PatientVo>> getPhoneAndCards(
 			@WebParam(name = "hospitalCode") String hospitalCode,
 			@WebParam(name = "patientIdentityCardType") Integer patientIdentityCardType,
 			@WebParam(name = "patientIdentityCardNumber") String patientIdentityCardNumber,
 			@WebParam(name = "patientMedicalCardType"  ) Integer patientMedicalCardType,
 			@WebParam(name = "patientMedicalCardNumber" ) String patientMedicalCardNumber,
 			@WebParam(name = "patientName") String patientName,
 			@WebParam(name = "patientSex") Integer patientSex,
 			@WebParam(name = "patientBirthday" ) String patientBirthday,
 			@WebParam(name = "patientMobile" ) String patientMobile,
 			@WebParam(name = "provinceCode") String provinceCode,
 			@WebParam(name = "cityCode") String cityCode,
 			@WebParam(name = "areaCode") String areaCode,
 			@WebParam(name = "patientAddress" ) String patientAddress,
 			@WebParam(name = "operationType" ) Integer operationType
 			);
    
    @WebMethod
    @WebResult(name="String",targetNamespace="")
     public ResponseEntity<List<PatientCardVo>> queryBusCards(
    		 @WebParam(name = "hospitalCode") String hospitalCode,
    		 @WebParam(name = "patientCode") String patientCode
 			);
    
}
